package models

type Claims struct {
	ID     int    `gorm:"primary_key" json:"claim_id"`
	AuthID int    `json:"auth_id"`
	Type   string `json:"type"`
	Value  string `json:"value"`
}

func GetUserClaims(userName int) (claims []Claims) {
	//var auth Auth
	//db.Where("username = ?", userName).First(&auth)
	//db.Where("auth_id = ?", auth.ID).Find(&claims)
	db.Where("auth_id = ?", 1).Find(&claims)
	return
}
func GetUserClaimss(userid int) (claims Claims) {
	res:= Claims{userid, userid, "role", "admin"}

	return res
}
